﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace T19ShotBlock.BaseClass
{
    public  class BitmapHelper
    {
        /// <summary>
        /// 载入图片资源
        /// </summary>
        /// <param name="bmFilename">图片文件名</param>
        /// <returns>位图（Bitmap）资源</returns>
        public static Bitmap LoadBm(string bmFilename)
        {
            return new Bitmap(Application.StartupPath+"\\GamePictures\\"+bmFilename +".bmp");
        }
    }
}
